Repository navigation
Trim slow test fixtures and synchronize DuckDB spatial installs - #12323
lwwmanning wants to merge 2 commits into
Conversation
…alls Signed-off-by: Will Manning <will@willmanning.io>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
roborev: Combined Review (
|
Merging this PR will improve performance by 13%Warning vortex-data has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed. 1 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
The fixture trims look right. The deleted vortex-fsst test is still covered: fsst_compress only passes i32::MAX to fsst_compress_with_offset_threshold, and fsst_compress_offset_width_rollover exercises both offset widths. The btrblocks assertions still bite at 4,096 rows, because a raw 4,096-bit validity bitmap is 512 bytes and the tests require less than 100. Two points:
.config/nextest.tomllines 4 and 5: I agree with the bot comments. CI passes--cargo-profile ci, which picks the Cargo build profile, and nothing selects the nextestciprofile. The new timeout never applies. I would delete the[profile.ci]block. If you want it, add--profile cito the CI nextest calls. First check that no CI test runs longer than 30 seconds in acibuild, because the profile would kill it.vortex-duckdb/src/e2e_test/mod.rslines 8 to 85: the loader can be about half its size.File::lockusesflockon Unix andLockFileExon Windows. Both conflict between two handles in the same process, so the file lock already serializes threads andINSTALL_LOCK(line 21) adds nothing. DuckDB already nests installed extensions under<extension_directory>/<version>/<platform>/, soduckdb_version_dir_name(lines 23 to 36) and itsunsafeblock are not needed. The marker file (lines 63, 64, 76 and 81) only matters when a successfulLOADfollows it, so "tryLOAD, lock, tryLOADagain, thenINSTALL" does the same job without it. As far as I know, DuckDB writes the extension to a temporary file and renames it, so a reader cannot load a half-written file.
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
|
Addressed both points in |
lwwmanning
left a comment
There was a problem hiding this comment.
Posted by Claude Opus 5.5 on Will's behalf.
Commit c014237 resolves both points from my earlier review. The unused nextest ci profile is gone. The spatial loader now relies on the file lock and a repeated LOAD, without the mutex, the version directory or the marker file.
Removes the 3.2 GiB debug-mode
fsst_compress_offsets_overflow_i32test (already covered in <1ms byfsst_compress_offset_width_rollover) along with its now-unusedtest-withdev-dependency, shrinks oversized validity and child-policy fixtures invortex-btrblockswhile gating azstd-only test import, and switchesvortex-uuidproperty tests togs::binary()with a shared session. Synchronizes DuckDBspatialextension installation across threads and nextest processes via a pure-Rust file lock, guards globalSCAN_V2mutation with a mutex drop guard, and removes the serialduckdb-extension-installnextest group.Assisted by Antigravity.